<ui:fragment
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:p="http://primefaces.prime.com.tr/ui">

    <p:dialog header="Nova instituicao" draggable="true" widgetVar="instituicao_new">
        <h:form id="instituicao_newF">
            <p:messages id="msgs"/>
            <h:panelGrid columns="2" style="width:100%;text-align:left;">
                <h:outputLabel value="#{bundle.ID}" />
                <h:outputText value="#{instituicaoController.instituicao.id}" />
                <h:outputLabel value="#{bundle.Sigla}" />
                <h:inputText value="#{instituicaoController.instituicao.sigla}" size="4" maxlength="4"/>
                <h:outputLabel value="#{bundle.Nome}" />
                <h:inputText value="#{instituicaoController.instituicao.nome}" size="20" maxlength="255"/>
            </h:panelGrid>
            <h:panelGrid columns="2" width="100%">
                <p:commandButton value="#{bundle.Salvar}"  action="#{instituicaoController.Salvar}"          ajax="true" update="instituicao_newF"/>
                <p:commandButton value="#{bundle.Cancelar}" action="#{instituicaoController.NovaInstituicao}" ajax="true" update="instituicao_newF"  onclick="instituicao_new.hide();"/>
            </h:panelGrid>


        </h:form>
    </p:dialog>
</ui:fragment>